import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { SearchPage } from '../pages/search/Search';
import { SettingPage } from '../pages/setting/Setting';
import { NewPage } from '../pages/new/New';
import { TabsPage } from '../pages/tabs/tabs';
import { Ng2FilterPipe } from "../pipe/filter.pipe";
import { DetailPage } from "../pages/search/detail/Detail";
import { ChatService } from "../services/Chat";
import { HelpUtils } from "./utils/HelpUtils";

@NgModule({
    declarations: [
        MyApp,
        SearchPage,
        SettingPage,
        NewPage,
        TabsPage,
        Ng2FilterPipe,
        DetailPage
    ],
    imports: [
        IonicModule.forRoot(MyApp, {
            backButtonText: '',
            iconMode: 'ios',
            mode:'ios'
        })
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp,
        SearchPage,
        SettingPage,
        NewPage,
        TabsPage,
        DetailPage,
    ],
    providers: [ChatService,HelpUtils, {provide: ErrorHandler, useClass: IonicErrorHandler}]
})
export class AppModule {
}
